import request from '@/utils/request'

// 查询活动组织者列表
export function listOrganizers(query) {
  return request({
    url: '/education/Organizers/list',
    method: 'get',
    params: query
  })
}

// 查询活动组织者详细
export function getOrganizers(organizerId) {
  return request({
    url: '/education/Organizers/' + organizerId,
    method: 'get'
  })
}

// 新增活动组织者
export function addOrganizers(data) {
  return request({
    url: '/education/Organizers',
    method: 'post',
    data: data
  })
}

// 修改活动组织者
export function updateOrganizers(data) {
  return request({
    url: '/education/Organizers',
    method: 'put',
    data: data
  })
}

// 删除活动组织者
export function delOrganizers(organizerId) {
  return request({
    url: '/education/Organizers/' + organizerId,
    method: 'delete'
  })
}
